]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
style: Reduce padding between quick menu toggle text and separator
authorSebastian Keller <skeller@gnome.org>
Tue, 7 Mar 2023 14:11:22 +0000 (15:11 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sun, 19 Mar 2023 23:05:12 +0000 (23:05 +0000)
The padding between the text and the arrow button separator effectively
was 2 * base_padding, while the spacing between the icon and the text
was just 1.5 * base_padding. This was a bit uneven and also could result
in the text getting ellipsized when it wasn't necessary.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6432
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2685>

data/theme/gnome-shell-sass/widgets/_quick-settings.scss

index 7c9accb1664f71b0efc841b8360c5faa34b92ae6..d6b4e5a3d598c063e7ed7347d1b7f4c63a63a2b3 100644 (file)
@@ -48,7 +48,9 @@
     max-width: auto;
 
     &:ltr { border-radius: 99px 0 0 99px; }
+    &:ltr > StBoxLayout { padding-right: $base_padding*1.5; }
     &:rtl { border-radius: 0 99px 99px 0; }
+    &:rtr > StBoxLayout { padding-left: $base_padding*1.5; }
 
     &:ltr:last-child { border-radius: 99px; }
     &:rtl:last-child { border-radius: 99px; }